package com.star.vrserver.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *  疫苗预约订单表
 * </p>
 *
 * @author star
 * @since 2023-03-09
 */
@Data
@TableName("vrorder")
@ApiModel(value = "Vrorder对象", description = "疫苗预约订单表")
public class Vrorder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("预约订单id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty("用户id")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty("疫苗id")
    @TableField("vaccine_id")
    private String vaccineId;

    @ApiModelProperty("用户预约疫苗接种时间，用于提醒用户")
    @TableField("reserve_date")
    private Date reserveDate;

    @ApiModelProperty("是否成功接种，默认为0(未接种)，1为已接种")
    @TableField("is_inoculated")
    private Boolean isInoculated;

    @ApiModelProperty("逻辑删除 1（true）已删除， 0（false）未删除")
    @TableField("is_deleted")
    @TableLogic
    private Boolean isDeleted;

    @ApiModelProperty("创建时间")
    @TableField(value = "gmt_create", fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty("更新时间")
    @TableField(value = "gmt_modified", fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
}
